# Contributor: Alexander Edland <alpine@ocv.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=vamp-sdk
pkgver=2.10.0
pkgrel=2
pkgdesc="Framework for audio analysis and feature extraction"
url="https://code.soundsoftware.ac.uk/projects/vamp-plugin-sdk"
arch="all"
license="BSD-3-Clause"
options="!check"  # testing is done by make
makedepends="libsndfile-dev"
subpackages="$pkgname-dev $pkgname-libs"
source="https://code.soundsoftware.ac.uk/attachments/download/2691/vamp-plugin-sdk-$pkgver.tar.gz"
builddir="$srcdir/vamp-plugin-sdk-$pkgver"

build() {
	export CFLAGS="$CFLAGS -flto=auto"
	export CXXFLAGS="$CXXFLAGS -flto=auto"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make -j1
}

package() {
	make -j1 DESTDIR="$pkgdir" install
}

sha512sums="
153b7f2fa01b77c65ad393ca0689742d66421017fd5931d216caa0fcf6909355fff74706fabbc062a3a04588a619c9b515a1dae00f21a57afd97902a355c48ed  vamp-plugin-sdk-2.10.0.tar.gz
"
